<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

$dir = dirname(__FILE__);
$c = isset($_GET["c"])?$_GET["c"] : "Index";
$a = isset($_GET["a"])?$_GET["a"] : "register";
$m = isset($_GET["m"])?$_GET["m"] : "Index";

define("DOCUMENT_ROOT", $dir);
include DOCUMENT_ROOT."/Application/{$m}/controller/{$c}Controller.class.php";
$name = $c."Controller";
$object = new $name();
$object->$a();
